﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<div class="adv-lft">
   <%-- <%List<Advertising> listAdvertising = (List<Advertising>)ViewData["AdvertisingLeft"];
      int y = 0;
      for (int i = 0; i < listAdvertising.Count; i += 3)
      {%>
    <ul>
        <%for (int z = 0; z < 3; z++)
          {
              if (y < listAdvertising.Count)
              {
                  Advertising obj = listAdvertising[y];
                  string link = string.Empty;
                  if (obj.IsIntenalLink)
                  {
                      link = "<a href='" + FRouter._("quangcao", obj.ID.ToString(), obj.Title) + "' >";
                  }
                  else
                  {
                      link = "<a href='"+ obj.ExternalLink + "' target='_blank' >";
                  }

                  int[] size =CommonFunc.FixImageSize(140,192,Server.MapPath(Constants.UPLOAD_ADV_IMAGE_PATH + obj.Image));
                  link += "<img src='" + Constants.UPLOAD_ADV_IMAGE_PATH + obj.Image + "' width='"+size[0]+"' height='"+size[1]+"' title='" + HttpUtility.HtmlEncode(obj.Title) + "' /></a>";                                    

        %>
        <li>
            <%=link%></li>
        <%y++;
                                 }
                             } %>
    </ul>
    <%} %>
   --%>
</div>
<div>
    <%--<img src="/Themes/images/Advertise.jpg" alt="Liên hệ đặt quảng cáo" />--%>
</div>
<%--<script type="text/javascript">
    $(document).ready(function () {
        $('.adv-lft').cycle({
            fx: 'fade',
            delay: 4000,
            pause: 1
        });
    });
</script>--%>
